function passGen()
			{
				var possible="";
				var password="";
				var lowerLetters="abcedfghijklmnopqrstuvwxyz";
				var upperLetters="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
				var nums="0123456789";
				var numCheck=confirm("Would you like it to contain numbers?");
				if(numCheck==true)
				{
					possible+=nums;
				}
				var lowCheck=confirm("Would you like it to contain lowercase letters?");
				if(lowCheck==true)
				{
					possible+=lowerLetters;
				}
				var upperCheck=confirm("Would you like it to contain uppercase letters?");
				if(upperCheck==true)
				{
					possible+=upperLetters;
				}
				if(numCheck==true||lowCheck==true||upperCheck==true)
				{
					var input=prompt("How many characters would you like?");
					if(isNaN(input)==false)
					{
						var numChars=parseInt(input);
						var retryCheck=true;
						
						while(retryCheck==true)
						{
							for(i=0;i<numChars;i++)
							{
								var rand1=Math.floor(Math.random()*possible.length);
								password+=possible.charAt(rand1);
							}
							retryCheck=confirm(password + " is your password. Would you like to regenerate? ");
							password="";
						}	
					}
					else
					{
						alert("That is not a number!");
					}
				}
				else
				{
					alert("You can't make a password out of nothing!");
				}
			}